-
Notifications
You must be signed in to change notification settings - Fork 136
Newpkg: Supertux #1585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Newpkg: Supertux #1585
Conversation
|
do you know how to enable touchscreen buttons in this version? also, Do you know how to make it buildable in also, I think that probably this variable |
|
generally, I prefer to partially pretend that Termux:X11 is probably not a desktop PC, but instead directly compare it to the "ubuntu tablet" for the purposes of touchscreen buttons support. The thought goes like this: If an X11 application (which is internally using almost exactly the same touchscreen + windowing APIs, driven by the same application-side touchscreen backend code, on an "ubuntu tablet", as it would on Termux:X11) does have the ability to have touchscreen automatically enabled somehow, then it should do so, because the "ubuntu tablet" user would definitely prefer that to be the case. The keyboard, mouse, or gamepad functionality, should also automatically activate when an external keyboard, mouse, or gamepad input, is used, respectively.
I have been testing this command with my devices, and it has been working, but if on your device, the OpenSLES linking step has an error, then I would like to know about that so I can find out what is inconsistent about it.
|
The thought goes like this: If an X11 application (which is internally using almost exactly the same touchscreen + windowing APIs, driven by the same application-side touchscreen backend code, on an "ubuntu tablet", as it would on Termux:X11) does have the ability to have touchscreen automatically enabled somehow, then it should do so, because the "ubuntu tablet" user would definitely prefer that to be the case. The keyboard, mouse, or gamepad functionality, should also automatically activate when an external keyboard, mouse, or gamepad input, is used, respectively. I understand your point of view, although I think Termux rather “emulates” desktop solutions. At least for now. It doesn't support touch screens on a screen-by-screen basis (multi-touch, etc.), but on a mouse-by-mouse basis.
|
this is not correct. in Termux:X11 settings, touch the "direct touch" setting. This is multitouch support.
could you send the result error of what happens from this command for you? ./build-package.sh -I -f luantion-device, like I mentioned, for your device, |
Ok, didn't know that.
Not an error - just a loop |
|
I can reproduce that, but I do know that it is not exactly directly related to luanti, well, it kind of is, but it's debatable. It happens because of code that is outside of the The text The code that is entering an infinite loop for you is somewhere inside this command that runs during the cpan -fi File::MimeInfoI know that because the text and the command The way to reproduce this infinite loop is using these commands: pkg remove -y xdg-utils
rm -rf ~/.cpan
cd tur/
./setup-environment.sh
scripts/setup-termux.sh
./build-package.sh -I -f luantiCould you use this commands instead to make sure that you do not reach that infinite loop case? |
|
@robertkirkman I have one question. Can you jump (using space) in game? I don't know that I have a problem with the game or Termux X11 or something else. |
There is a problem with keybindings yes, but it is not limited to supertux, some similar problems with both Space and Backspace also happen with X11 on Android with other games (in X11 servers both like Termux:X11 and also Xvnc from the package |
|
@IntinteDAO |
|
@hansm629 Try now |
|
@IntinteDAO |
|
Does space button works to you or you need to remap a key? |
|
@IntinteDAO |
|
@robertkirkman I think the bug with keyboard is fixed, please upgrade Termux X11 and confirm. It also works on Luanti |
In the build of SuperTux I downloaded from the artifacts here just now, on Samsung Galaxy A70 with Termux:X11 APK version 20250410 and Regarding Luanti, what version of Luanti did you test, version 1:5.11.0-1, or version 1:5.11.0-2? Version 1:5.11.0-2 is a version that I have patched specifically to force the Space bar to work for jump by default with no custom keybind required, fixing the problem that now seems to only exist in Luanti. |
|
5.11.0-2 This one. So probably a patch is merged. But still something fix a issue, maybe this one: But still, we need to downgrade luanti, check and then maybe contact with twaik to fix a issue on USB Keyboard if needed |
I tested that PR before it was merged and described what happened for me here, you can read about what I saw in Luanti there: if you downgrade luanti, but keep the current Termux:X11 version, you should be able to reproduce the exact behavior i explained there (because at the time I wrote that, was using the older Luanti version, but using the then-future Termux:X11 version) |
|
Oh, but I only explained about the Backspace there. Ok, specifically regarding Space and 9-Key: if you downgrade Luanti and use any known Termux:X11 version (older or newer), then Space and 9-Key will have swapped behavior, meaning that 9-Key will jump and Space will type "9" symbol. but in the current Luanti from |
|
Originally I thought that would also affect SuperTux, but it now seems like that specific problem only affects Luanti as far as is currently known. |
|
@robertkirkman @hansm629 |
|
It does, if "prefer scancodes when possible" is set to enabled. SuperTux 7 which will support touchscreen buttons in X11 (as seen in the version I packaged as a test) might take a long time to officially release, so this could be added initially in TUR and then after a little while if SuperTux 7 does not officially release, I can open a PR here which bumps to the development commit and cherry picked upstream PR, and fixes any other problems. For example another problem is that this package is supposed to depend on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this game is pretty much playable like this IF you have have a keyboard, the problems are really small details that can be improved later.
- I have a different version of this package with some differences, but they aren't that important to have in a single PR.
- If this game ends up being approved, then soon afterward I would play it, and make a different PR later with any changes I want to apply (like unofficial touchscreen buttons from the PR to the upstream repository, which I tested works as the solution to touchscreen buttons for this game in Termux:X11) SuperTux/supertux#3021,
- and those other changes could be discussed at that time.
Well, ofc. we should remember that Supertux2 have native Android application with touchscreen. But I can wait for newest version |
I am trying to permanently fix this here after I merge that, the infinite loop should disappear |
|
Ok the infinite loop should now be actually fixed, so you can add |





No description provided.